package www.way2inbox.common;

import android.content.Context;
import android.util.Log;
import android.widget.Toast;

/**
 * Created by sys1031 on 12/12/14.
 */
public class PrintMsg {

    public static void SetToast(Context context,String Msg,int imp) {

        if (imp == 1){

            // This Toast is important , DO NOT COMMENT THIS ..

            Toast.makeText(context, Msg, Toast.LENGTH_LONG).show();
        }else{
            //YOU CAN COMMENT IT ..
//        Toast.makeText(context, Msg, Toast.LENGTH_SHORT).show();
    }
    }

    public static void setprint(Context context,String Msg){
//        System.out.println(context.getClass().getSimpleName()+"--->"+Msg);
    }


    public static void setLogerror(Context context,String Msg){
        Log.e(context.getClass().getSimpleName(), Msg);
    }

//    public static void setprint(String Msg){
//        System.out.println(Msg);
//    }

}
